<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
        PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:c="http://java.sun.com/jsp/jstl/core"
      xmlns:h="http://java.sun.com/jsf/html" xml:lang="en" lang="en"
      xmlns:p="http://primefaces.org/ui">
<h:head>
    <c:set var="ctx" value="#{facesContext.externalContext.request.contextPath}"/>
    <title><ui:insert name="pageTitle">default</ui:insert></title>
    <meta http-equiv="Cache-Control" content="no-store"/>
    <meta http-equiv="Pragma" content="no-cache"/>
    <meta http-equiv="Expires" content="0"/>
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <link rel="shortcut icon" href="${ctx}/images/favicon.ico" type="image/x-icon"/>
    <link rel="stylesheet" type="text/css" href="${ctx}/css/deliciouslyblue/theme.css" title="default"/>
    <link rel="alternate stylesheet" type="text/css" href="${ctx}/css/deliciouslygreen/theme.css" title="green"/>
    <ui:insert name="head">
    </ui:insert>
</h:head>
<h:body>
    <h:form id="mainForm" prependId="false">
        <div id="wrapper">
            <div id="page">
                <div id="header" class="clearfix">
                    <div id="branding" style="font-size:20px ;font-family: Arial,Helvetica;font-weight: bold;">
                        Vidwan Educational Society
                    </div>
                    <div style="text-align: right;font-style: italic; ">
                        <c:if test="#{user.firstName !=null}">
                            <h:outputText value="Logged in as: "/>
                            <h:outputText value="#{user.firstName}"/>
                            <p:commandLink value="  Logout" action="#{login.logout}" ajax="false"/>
                        </c:if>
                    </div>
                </div>
                <div id="content">
                    <div id="main">
                        <h1><ui:insert name="pageTitle">title </ui:insert></h1>


                            <ui:insert name="body">
                                body
                            </ui:insert>

                    </div>
                    <div id="nav">
                        <ui:insert name="menu">
                        </ui:insert>
                    </div>
                </div>
                <div id="footer">
                <p>
                  	Copyright &copy; 2005 - 2012 VES. All Rights Reserved.

                </p>

                </div>
            </div>
        </div>
    </h:form>
</h:body>

</html>
